import type { paginationResTypes } from "./global";
export interface communityItemTypes {
    comment_count: number,
    community_info: {
        community_name: string,
        id: number
    },
    topic_info: {
        id: number,
        topic: string
    }
    comments: [
        {
            content: string,
            id: number,
            replies: [
                {
                    content: string,
                    id: number,
                    reply_to: {
                        avatar: string,
                        id: number,
                        nick_name: string,
                        signature: string
                    },
                    user_info: {
                        avatar: string,
                        id: number,
                        nick_name: string,
                        signature: string
                    }
                }
            ],
            user_info: {
                avatar: string,
                id: number,
                nick_name: string,
                signature: string
            }
        }
    ],
    contact_info: null | string,
    content: string,
    create_time: string,
    id: number,
    img_urls: string[],
    is_anonymous: boolean,
    is_like: boolean,
    like_count: number,
    share_count: number,
    user_info: {
        avatar: string,
        id: number,
        nick_name: string
    }
}

export interface communityTypes extends paginationResTypes {
    data: communityItemTypes[],
}